package com.shuai.baibi.service;

import com.shuai.baibi.model.entity.Chart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @author bxs
 * @description 针对表【chart(帖子)】的数据库操作Service
 * @createDate 2023-10-26 14:47:35
 */
public interface ChartService extends IService<Chart> {
    /**
     * 构建讯飞请求语句
     */
    String buildXFAskStr(String goal, String chartType, String csvStr);

    /**
     * 处理讯飞响应结果
     */
    Map<String, String> processXFResponseData(String responseMessage);

    /**
     * 异常情况下更新图表状态，需要提前指定状态
     */
    boolean setExecMessage(Chart chart, String execMessage);

}
